package com.zk.shop.servlet.order;

import com.zk.shop.entity.Order;
import com.zk.shop.entity.User;
import com.zk.shop.service.Impl.OrderServiceImpl;
import com.zk.shop.service.OrderService;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

/**
 * @ClassName selOneOrderServlet
 * @Description TODO
 * @Author 李帅
 * @Date 2019/9/30 0030 上午 9:19
 * @Version 1.0
 **/

public class selOneOrderServlet extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

        int orderId= Integer.parseInt(req.getParameter("orderId"));
        OrderService orderService=new OrderServiceImpl();
        Order order=orderService.selOneOrder(orderId);
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req,resp);
    }
}
